package com.jl.niuniu.service;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;

public class MainTest {
    public static void main(String[] args) {
//        List<Integer> list = new ArrayList<>(Arrays.asList(4,1));
//
//        Integer integer = list.get(ThreadLocalRandom.current().ints(0, list.size()).findFirst().getAsInt());
//        System.out.println(integer);
        Random random = new Random();
        System.out.println(random.nextInt(1));
    }
}
